namespace NodeBasedSkillEditor.Model.Node
{
    [Node(Category = DAGHelper.CateName_MathLogic, Name = "And Or", SearchTag = "&&||")]
    public class Node_And_Or : NodeData
    {
        [Port(IOType = EPortIOType.Input)]
        public EnumPort<EAndOr> Logic = new EnumPort<EAndOr>();

        [Port(IOType = EPortIOType.Input)]
        public PortGroup Values = new PortGroup(typeof(BooleanPort));

        [Port(IOType = EPortIOType.Output)]
        public BooleanPort Result = new BooleanPort();

        public override RT_Node BuildRuntimeNode(RT_DAG parentDAG)
        {
            return new RT.Node_And_Or_RT(this, parentDAG);
        }
    }
}
